package com.reader.cms.entity.topic;

import java.io.Serializable;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author gumenghao
 * @@description
 * @date 2018-11-06
 */
@TableName("reader_topic")
public class ReaderTopic extends Model<ReaderTopic> {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 访谈名称
     */


    private String title;

    /**
     * 封面
     */


    private String cover;


    /**
     * 专题介绍
     */


    private String introduction;

    /**
     * 发布时间
     */

    @TableField("publish_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishDt;


    private String state;


    private Integer enable;


    @TableField("del_lag")

    private Integer delFlag;


    @TableField("insert_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertDt;


    @TableField("insert_user_id")

    private Integer insertUserId;


    @TableField("updt_dt")

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updtDt;


    @TableField("updt_user_id")

    private Integer updtUserId;

    @TableField(exist = false)
    private String promulgator;

    @TableField(exist = false)
    private String stateNm;


    /**
     * 关联内容分类表
     */

    @TableField(exist = false)

    private List<Integer> contentClassifies;


    @TableField(exist = false)
    private List<Integer> tagIds;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Date getPublishDt() {
        return publishDt;
    }

    public void setPublishDt(Date publishDt) {
        this.publishDt = publishDt;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getInsertDt() {
        return insertDt;
    }

    public void setInsertDt(Date insertDt) {
        this.insertDt = insertDt;
    }

    public Integer getInsertUserId() {
        return insertUserId;
    }

    public void setInsertUserId(Integer insertUserId) {
        this.insertUserId = insertUserId;
    }

    public Date getUpdtDt() {
        return updtDt;
    }

    public void setUpdtDt(Date updtDt) {
        this.updtDt = updtDt;
    }

    public Integer getUpdtUserId() {
        return updtUserId;
    }

    public void setUpdtUserId(Integer updtUserId) {
        this.updtUserId = updtUserId;
    }

    public String getPromulgator() {
        return promulgator;
    }

    public void setPromulgator(String promulgator) {
        this.promulgator = promulgator;
    }

    public String getStateNm() {
        return stateNm;
    }

    public void setStateNm(String stateNm) {
        this.stateNm = stateNm;
    }

    public List<Integer> getContentClassifies() {
        return contentClassifies;
    }

    public void setContentClassifies(List<Integer> contentClassifies) {
        this.contentClassifies = contentClassifies;
    }

    public List<Integer> getTagIds() {
        return tagIds;
    }

    public void setTagIds(List<Integer> tagIds) {
        this.tagIds = tagIds;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReaderTopic{" +
                ", id=" + id +
                ", title=" + title +
                ", cover=" + cover +
                ", introduction=" + introduction +
                ", publishDt=" + publishDt +
                ", state=" + state +
                ", enable=" + enable +
                ", delFlag=" + delFlag +
                ", insertDt=" + insertDt +
                ", insertUserId=" + insertUserId +
                ", updtDt=" + updtDt +
                ", updtUserId=" + updtUserId +
                "}";
    }
}